#define _CRT_SECURE_NO_WARNINGS 1

#include "Heap.h"

int main()
{
	Hp hp;
	HeapInit(&hp);
	HeapPush(&hp, 12);
	HeapPush(&hp, 13);
	HeapPush(&hp, 9);
	HeapPush(&hp, 1);
	HeapPush(&hp, 33);
	HeapPush(&hp, 10);
	HeapPush(&hp, 20);
	HeapPush(&hp, 55);
	HeapPush(&hp, 11);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");

	HeapDestory(&hp);

	return 0;
}